import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    redirect:'/user'
  },
  {path:'/login',component:()=>{return import('../views/LoginView.vue')}},
  {path:'/user',component:()=>{return import('../views/user/UserView.vue')}},
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
